/**
 * Created by admin on 2017/6/2.
 */
import {
  CityList,
  ActivityList,
  ActivityDetail,
  ActivityUserState,
  Register
} from '../mutation-types';
import * as getters from '../getters/registration';
import * as actions from '../actions/registration';
const state = {
  cityList: [],
  activityList: {
    data: [],
    meta: {}
  },
  activityDetail: {},
  activityUserState: {},
  register: {}
};

const mutations = {
  [CityList] (state, data) {
    state.cityList = data;
  },
  [ActivityList] (state, data) {
    state.activityList = data;
  },
  [ActivityDetail] (state, data) {
    state.activityDetail = data;
  },
  [ActivityUserState] (state, data) {
    state.activityUserState = data;
  },
  [Register] (state, data) {
    state.register = data;
  }
};

export default {
  state,
  mutations,
  getters,
  actions
};
